"""
WSGI config for MxShop project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application

profile_env = os.environ.get("PROJECT_ENV", None)
if not profile_env:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MxShop.settings.local')
elif profile_env == "dev":
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MxShop.settings.develop')
else:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MxShop.settings.production')

application = get_wsgi_application()
